package com.sqx.modules.log.controller;

import com.alibaba.fastjson.JSONObject;
import com.sqx.common.utils.Result;
import com.sqx.modules.log.service.SysLogOperationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;


/**
 * 操作日志
 *
 * @author fang
 *
 */
@RestController
@RequestMapping("sys/log/operation")
@Api(tags = "操作日志")
public class SysLogOperationController {

    @Autowired
    private SysLogOperationService sysLogOperationService;

    @PostMapping("/page")
    @ApiOperation("分页")
    public Result page(@ApiParam("参数") @ApiIgnore @RequestBody JSONObject params) {
        Result page = sysLogOperationService.page(params);
        return page;
    }


}